package com.itheima.job2;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Collections.addAll(list,10,12,32,12,34,23,12,34,56,76,26);
        Collections.shuffle(list);
        System.out.println(list);
        list.sort((o1, o2) -> o1-o2);
        System.out.println(list);
        list.sort((o1, o2) -> o2-o1);
        System.out.println(list);
    }
}
